/**
 * Created by Freeman on 2016/7/14.
 */
/**
 * Created by Freeman on 2016/6/29.
 */

import Vuex from 'vuex'
import Vue from 'vue'

import userList from './modules/user.list'
import sessionList from './modules/session.list'
import user from './modules/user'


import middlewares from './middlewares'


const debug = process.env.NODE_ENV !== 'production'
Vue.use(Vuex)
Vue.config.debug = debug
Vue.config.warnExpressionErrors = false

export default new Vuex.Store({
    modules: {
        user,
        userList,
        sessionList,
    },
    strict: debug,
    middlewares
})